package com.test.study;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.test.study.config.SpringConfig;

/**
 * Hello world!
 *
 */
public class ServerApp
{
    public static void main( String[] args )
    {
//    	int port = 5566;
//    	IHelloService helloService = new HelloServiceImpl();
//    	GpRpcServer server = new GpRpcServer(port);
//    	server.publisher(helloService);
    	
		ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
    	((AnnotationConfigApplicationContext)context).start();
    	
    }
}
